﻿#ifndef RTPRECV_H
#define RTPRECV_H

#include <QThread>
#include <QUdpSocket>
#include "fifobuffer.h"

/* RTP包接收者线程 */
class RTPRecv : public QThread
{
    Q_OBJECT
public:
    explicit RTPRecv(QObject *parent = nullptr);
    ~RTPRecv();

    void setRunState(bool start);

    void resetRecvBuffer();

protected:
    void run();

public:
    bool isRun;

    FiFoBuffer *fifoBufferVideo; //接收视频RTP包的队列
    FiFoBuffer *fifoBufferAudio; //接收音频RTP包的队列
};

#endif // RTPRECV_H
